package com.geek.demo01.service;

import com.geek.demo01.model.Student;
import com.geek.demo01.repository.StudentRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName StudentService
 * @Description TODO
 * @Author zzm
 * @Data 2020/9/14 20:33
 * @Version 1.0
 */
@Service
public class StudentService {

    @Autowired
    private StudentRepository studentRepository;

    public List<Student> findAll() {
        return studentRepository.findAll();
    }
}
